package com.luyu.service;

import com.luyu.entity.User;
import com.luyu.req.UserLoginReq;
import org.springframework.security.core.userdetails.UserDetails;

import java.util.List;

/**
* @author HASEE
* @description 针对表【user】的数据库操作Service
* @createDate 2024-03-11 21:37:12
*/
public interface UserService {


    void saveRandomUser();

    UserDetails detail(Long id);

    List<User> page();

    String loginToken(UserLoginReq req);


    public UserDetails loadUserByUsername(String username);

    Boolean replaceCurrentRole(Long roleId);

    Boolean kickOut(String userName);
}
